package day1701;

import java.util.ArrayList;
import java.util.Collections;

public class 打印70103 {
    public static void main(String[] args) {
        ArrayList<String> a = new ArrayList<>();
        Collections.addAll(a,"1","3","77","qqq","byt");
        System.out.println(a);

        System.out.println(Collections.max(a));
        System.out.println(Collections.min(a));

        Collections.reverse(a);
        System.out.println(a);

        Collections.sort(a);
        System.out.println(a);

        Collections.swap(a,1,2);
        System.out.println(a);







    }
}
